<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ include file="/common/common.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/sys/menu/";  //应用的地址名
String modifyActionName = basePath+"SysMenuHelp_add.action?op=save";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>菜单帮助信息管理</title>
<script type="text/javascript">
<!--
           $(function(){
              $('#MenuHelpFrame').layout();
               //初始化工作，因为远程载入该界面时无法通过在标签中进行设置相应的验证属性等信息，必须要在这里进行初始化
			$('#menuTable').tree({
				url:'<%=basePath%>SysMenu_searchMenuJsonTree.action',  //获取json格式的节点树
				//打开节点时的操作
			    onClick:function (node){ 
			                  if($('#menuTable').tree('isLeaf',node.target))
			               	      //$("#helpInfo").load("<%=path%>/sys/menu/SysMenuHelp_add.action", {chkSelf: node.id,menuText:node.text});
			               	      $("#helpInfo").attr("src","<%=path%>/sys/menu/SysMenuHelp_add.action?chkSelf="+node.id);
			               	  else
			               	      $('#menuTable').tree('toggle',node.target);
			            },
			    //加载数据失败的处理        
			    onLoadError: function () {    
	                $.messager.alert('消息提示','菜单树加载失败，请稍后再试！','error'); 
	            }                 
		      });   
		    
      });  
      

//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<div id="MenuHelpFrame" class="easyui-layout" style="width:100%;height:100%;">
  <div  region="west" split="true" style="width: 200px;height:320px;"><ul id="menuTable"></ul></div>
  <div  region="center"  style="overflow:hidden;"><iframe id="helpInfo" scrolling="auto" frameborder="0"  src="" style="width:100%;height:100%;"></iframe></div>
</div>
</body>
</html>


